package com.gko100.dao;

import java.util.List;

import com.gko100.model.Permission;
import com.gko100.model.User;
import com.gko100.model.UserPerm;

public interface UserPermDao {

	/**
	 * @note (查询所有UserPerm)
	 * @param ()
	 * @return (List<UserPerm>)
	 */
	List<UserPerm> findUserPermList();
	
	/**
	 * @note (添加会员权限)
	 * @param (AdminPerm adminPerm)
	 * @return ()
	 */
	void add_userPerm(UserPerm userPerm);
	
	/**
	 * @note (删除会员权限)
	 * @param (UserPerm userPerm)
	 * @return ()
	 */
	void del_userPerm(UserPerm userPerm);
	
	/**
	 * @note (更新会员权限)
	 * @param (UserPerm userPerm)
	 * @return ()
	 */
	void modify_userPerm(UserPerm userPerm);
	
	/**
	 * @note (根据userPermId查询用户权限)
	 * @param (Integer userPermId)
	 * @return (UserPerm)
	 */
	UserPerm findUserPermByUserPermId(Integer userPermId);
	
	
	
	/**
	 * @note (根据user查询用户所有权限)
	 * @param (User user)
	 * @return (List<UserPerm>)
	 */
	List<UserPerm> findUserPermListByUser(User user);
	
	
	
}
